package com.zhentao.service;

import com.baomidou.mybatisplus.extension.service.IService;


import com.zhentao.pojo.Users;
import com.zhentao.vo.Result;

import java.util.List;

/**
* @author 芸
* @description 针对表【users(用户基本信息表)】的数据库操作Service
* @createDate 2025-07-01 10:48:31
*/
public interface UsersService extends IService<Users> {


    Result listUsersByPage(Integer page, Integer size, String username);

    Result addUser(Users user);

    Result updateUser(Users user);

    Result deleteUser(Integer userId);

    Result getUserRoles(Integer userId);

    Result saveUserRoles(Integer userId, List<Integer> roleIds);
}
